<?php defined( '_SYS' ) or die( 'No direct script access allowed' );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $this->title; ?></title>
<?php echo $this->headData; ?>
</head>
<body>

	<div id="toolbar-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>
		<div class="m">
			<div class="toolbar" id="toolbar">
				<table class="toolbar">
					<tr>
						<td class="button" id="toolbar-save">
							<a href="#" onclick="javascript: submitbutton('save')" class="toolbar">
								<span class="icon-32-save" title="Save">
								</span>
							<?php echo C_text::_('Save');?>
							</a>
						</td>

						<td class="button" id="toolbar-apply">
							<a href="#" onclick="javascript: submitbutton('apply')" class="toolbar">
								<span class="icon-32-apply" title="Apply">
								</span>
							<?php echo C_text::_('Apply');?>
							</a>
						</td>

						<td class="button" id="toolbar-cancel">
							<a href="#" onclick="javascript: submitbutton('cancel')" class="toolbar">
								<span class="icon-32-cancel" title="Cancel">
								</span>
							<?php echo C_text::_('Cancel');?>
							</a>
						</td>
					</tr>
				</table>
			</div>
			<div class="header icon-48-menu"><?php echo C_text::_('ToolBox');?>: <small><small><?php echo $this->subTitle;?></small></small></div>	
			<div class="clr"></div>		
		</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
	</div>
	<div class="clr"></div>
<?php if($this->message) echo $this->message;?>
<div id="element-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>	
<div class="m" id="width-100">
	
	
	<form action="<?php echo WEBSELF; ?>/fdlist" method="post" name="adminForm" autocomplete="off">

<div class="width-100">
	<fieldset class="adminform">
		<legend><?php echo C_text::_('List_Detail');?></legend>
		<div class="pane-sliders">
			<?php
			$langs = $SYS->lang->getALL(1,'backend');
			for($i=0;$i<count($langs);$i++)			
			{
				$tmplang=$langs[$i];
				if(isset($this->itemfield[$i]['id']))
				{					
					$value = $this->itemfield[$i]['fieldvalue'];
					$idinput = '<input type="hidden" name="nameid['.$tmplang->id.']" value="'.$this->itemfield[$i]['id'].'" />';
					$order = $this->item['no_order'];
				}else
				{
					$value = '';
					$idinput = '';
					$order= '';
				}
			?>
			<div class="panel">
				<h4 id="cpanel-panel-logged" class="title pane-toggler"><a href="#"><span><?php echo $tmplang->title;?></span></a></h4>
				<div class="pane-slider content">
					<table class="admintable" cellpadding="1">
						<tr class="row0">
							<td width="150" class="key">
								<label for="<?php echo C_text::_( 'Item2' ); ?>">
									<?php echo C_text::_( 'Item2' ); ?>
								</label>
							</td>
							<td>
								<input type="text" name="name[<?php echo $tmplang->id; ?>]" id="name[<?php echo $tmplang->id; ?>]" class="inputbox must" size="40" value="<?php echo $value; ?>" />
								<?php echo $idinput;?>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<?php
			}
			?>
		</div>
		<table class="admintable" cellspacing="1">
				<tr class="row0">
					<td width="150" class="key">
						<label for="no_order">
							<?php echo C_text::_( 'Item1' ); ?>
						</label>
					</td>
					<td>
						<input type="text" name="no_order" id="no_order" class="inputbox" size="40" value="<?php echo $order; ?>" />
					</td>
				</tr>
			</table>
	</fieldset>

	<input type="hidden" name="task" value="" />	
	<input type="hidden" name="apply" value="<?php echo $this->apply; ?>" />
	<input type="hidden" name="bigid" value="<?php echo $this->item['bigid']; ?>" />
	<input type="hidden" name="id" value="<?php if(isset($this->item['id'])) echo $this->item['id']; ?>" />
	<?php echo C_HTML::_( 'form.token' ); ?>
</div>	
</form>
</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
</div>
<center>
	Powered by <b><a href='http://www.metinfo.cn' target='_blank'>MetInfo</a></b> ©2008- <?php echo date('Y',time());?>&nbsp;<a href='http://www.metinfo.cn' target='_blank'>www.MetInfo.cn</a>
</center>
<?php echo $this->js; ?>
</body>
</html>